
require("./styles/app.scss")

///////////////////////
// var React = require("react")
// var ReactDOM = require('react-dom')

import RootComponent from './scripts/components/RootComponent'

import {Router,Route,hashHistory,IndexRedirect,IndexRoute} from 'react-router'

import IndexComponent from './scripts/components/IndexComponent'
import Tuijian from './scripts/components/Tuijian'
import RegisterComponent from './scripts/components/RegisterComponent'
import LoginComponent from './scripts/components/LoginComponent'
import InfoComponent from './scripts/components/InfoComponent'
import DiscussComponent from './scripts/components/DiscussComponent'
import TuijianFly from './scripts/components/TuijianFly'
import InfoTwo from './scripts/components/InfoTwo'
import SecondComponent from './scripts/components/SecondComponent'

// {/* <IndexRedirect to="/main"/> */}
ReactDOM.render(
    
    <Router history={hashHistory}>
        <Route path="/" component={RootComponent}>
            
            <IndexRoute component={IndexComponent}/>
            <Route path="/index" component={IndexComponent}></Route>
            <Route path="/sec" component={SecondComponent}></Route>
            <Route path="/tuijian" component={Tuijian}></Route>
            <Route path="/reg" component={RegisterComponent}></Route>
            <Route path="/log" component={LoginComponent}></Route>
            <Route path="/info/:id" component={InfoComponent}></Route>
            <Route path="/video/:id" component={DiscussComponent}></Route>
            <Route path="/tuijianfly/:id" component={TuijianFly}></Route>
            <Route path="/infofly/:id" component={InfoTwo}></Route>
            <Route path="*" component={IndexComponent}></Route>
        </Route>
    </Router>
    
    ,document.getElementById("app"))